.class public Les/q40;
.super Ljava/lang/Object;
.source "SmbFileSystem.java"


# direct methods
.method static constructor <clinit>()V
    .locals 0

    .line 1
    invoke-static {}, Ljcifs/Config;->registerSmbURLHandler()V

    return-void
.end method

.method public static a(Ljava/lang/String;J)Ljava/io/InputStream;
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    const/4 v2, 0x0

    cmp-long v3, p1, v0

    if-nez v3, :cond_0

    .line 48
    :try_start_0
    invoke-static {p0}, Les/q40;->c(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p0

    return-object p0

    .line 49
    :cond_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 50
    new-instance v4, Ljcifs/smb/SmbFile;

    invoke-direct {v4, v3}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 51
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v3

    .line 52
    invoke-virtual {v4}, Ljcifs/smb/SmbFile;->exists()Z

    move-result v5

    if-nez v5, :cond_2

    if-eqz v3, :cond_1

    const/4 p1, 0x2

    .line 53
    new-instance p2, Les/u80$a;

    invoke-direct {p2, p0, v2}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v3, p1, p2}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_1
    return-object v2

    .line 54
    :cond_2
    invoke-virtual {v4}, Ljcifs/smb/SmbFile;->length()J

    move-result-wide v5

    cmp-long p0, p1, v5

    if-lez p0, :cond_4

    if-eqz v3, :cond_3

    const/16 p0, 0xa

    .line 55
    new-instance p1, Les/u80$a;

    const-string p2, "offset > filesize"

    invoke-direct {p1, p2, v2}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v3, p0, p1}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_3
    return-object v2

    .line 56
    :cond_4
    new-instance p0, Ljcifs/smb/SmbRandomAccessFile;

    const-string v3, "r"

    invoke-direct {p0, v4, v3}, Ljcifs/smb/SmbRandomAccessFile;-><init>(Ljcifs/smb/SmbFile;Ljava/lang/String;)V

    cmp-long v3, p1, v0

    if-eqz v3, :cond_5

    .line 57
    invoke-virtual {p0, p1, p2}, Ljcifs/smb/SmbRandomAccessFile;->seek(J)V

    .line 58
    :cond_5
    new-instance p1, Les/s40;

    invoke-virtual {v4}, Ljcifs/smb/SmbFile;->length()J

    move-result-wide v0

    invoke-direct {p1, p0, v0, v1}, Les/s40;-><init>(Ljcifs/smb/SmbRandomAccessFile;J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    return-object v2
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    .line 2
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 3
    new-instance v2, Ljcifs/smb/SmbFile;

    invoke-direct {v2, v1}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v2}, Ljcifs/smb/SmbFile;->exists()Z

    move-result v1

    const/4 v3, 0x0

    if-eqz v1, :cond_5

    invoke-virtual {v2}, Ljcifs/smb/SmbFile;->isDirectory()Z

    move-result v1

    if-nez v1, :cond_0

    goto :goto_2

    .line 5
    :cond_0
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v1

    .line 6
    invoke-virtual {v2}, Ljcifs/smb/SmbFile;->listFiles()[Ljcifs/smb/SmbFile;

    move-result-object v2

    if-eqz v2, :cond_4

    .line 7
    array-length v4, v2

    const/4 v5, 0x0

    :goto_0
    if-ge v5, v4, :cond_4

    aget-object v6, v2, v5

    if-eqz v1, :cond_1

    .line 8
    invoke-virtual {v1}, Les/s80;->z()Z

    move-result v7

    if-eqz v7, :cond_1

    return-object v3

    :cond_1
    if-nez v6, :cond_2

    goto :goto_1

    .line 9
    :cond_2
    new-instance v7, Les/p40;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljcifs/smb/SmbFile;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v6, v8}, Les/p40;-><init>(Ljcifs/smb/SmbFile;Ljava/lang/String;)V

    .line 10
    invoke-interface {p1, v7}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 11
    invoke-interface {v0, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_3
    :goto_1
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_4
    return-object v0

    :cond_5
    :goto_2
    return-object v3

    :catchall_0
    move-exception p0

    .line 12
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_0
    move-exception p0

    .line 13
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_4

    :goto_3
    throw p1

    :goto_4
    goto :goto_3
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/g;)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 59
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 60
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 61
    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide p0

    invoke-virtual {v0, p0, p1}, Ljcifs/smb/SmbFile;->setLastModified(J)V
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception p0

    .line 62
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_1
    move-exception p0

    .line 63
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 26
    :try_start_0
    invoke-static {p1}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 27
    new-instance p1, Ljcifs/smb/SmbFile;

    invoke-direct {p1, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 28
    invoke-virtual {p1}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p0

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return p0

    .line 29
    :cond_0
    invoke-virtual {p1}, Ljcifs/smb/SmbFile;->delete()V
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p0, 0x1

    return p0

    :catch_0
    move-exception p0

    .line 30
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_1
    move-exception p0

    .line 31
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 22
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 23
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p0
    :try_end_0
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :catch_0
    move-exception p0

    .line 24
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_1
    move-exception p0

    .line 25
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 32
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 33
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 34
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p0

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return p0

    .line 35
    :cond_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p0

    const/4 v1, 0x1

    sub-int/2addr p0, v1

    invoke-virtual {p1, p0}, Ljava/lang/String;->charAt(I)C

    move-result p0
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_0

    const/16 v2, 0x2f

    const-string v3, "/"

    if-ne p0, v2, :cond_1

    move-object p0, p1

    goto :goto_0

    :cond_1
    :try_start_1
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 36
    :goto_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 37
    new-instance v2, Ljcifs/smb/SmbFile;

    invoke-direct {v2, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 38
    invoke-virtual {v2}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p0

    if-eqz p0, :cond_2

    .line 39
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->A(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 40
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 41
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    long-to-int p1, v4

    invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 42
    new-instance p1, Ljcifs/smb/SmbFile;

    invoke-direct {p1, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 43
    invoke-virtual {v0, p1}, Ljcifs/smb/SmbFile;->renameTo(Ljcifs/smb/SmbFile;)V

    .line 44
    invoke-virtual {v2}, Ljcifs/smb/SmbFile;->delete()V

    move-object v0, p1

    .line 45
    :cond_2
    invoke-virtual {v0, v2}, Ljcifs/smb/SmbFile;->renameTo(Ljcifs/smb/SmbFile;)V
    :try_end_1
    .catch Ljava/net/MalformedURLException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljcifs/smb/SmbException; {:try_start_1 .. :try_end_1} :catch_0

    return v1

    :catch_0
    move-exception p0

    .line 46
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_1
    move-exception p0

    .line 47
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static a(Ljava/lang/String;Z)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 14
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 15
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    const/4 p0, 0x1

    if-eqz p1, :cond_0

    .line 16
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p1

    if-nez p1, :cond_1

    .line 17
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->mkdir()V

    goto :goto_0

    .line 18
    :cond_0
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p1

    if-nez p1, :cond_1

    .line 19
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->createNewFile()V
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :cond_1
    const/4 p0, 0x0

    :goto_0
    return p0

    :catch_0
    move-exception p0

    .line 20
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_1
    move-exception p0

    .line 21
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static b(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 12
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 13
    new-instance v1, Ljcifs/smb/SmbFile;

    invoke-direct {v1, v0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 14
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 15
    :cond_0
    new-instance v0, Lcom/estrongs/fs/e;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 16
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->isDirectory()Z

    move-result p0

    iput-boolean p0, v0, Lcom/estrongs/fs/e;->c:Z

    if-eqz p0, :cond_2

    .line 17
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->getType()I

    move-result p0

    invoke-virtual {v0, p0}, Lcom/estrongs/fs/e;->a(I)V

    .line 18
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->listFiles()[Ljcifs/smb/SmbFile;

    move-result-object p0

    if-eqz p0, :cond_3

    .line 19
    array-length v2, p0

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v2, :cond_3

    aget-object v4, p0, v3

    .line 20
    invoke-virtual {v4}, Ljcifs/smb/SmbFile;->isDirectory()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 21
    iget v4, v0, Lcom/estrongs/fs/e;->e:I

    add-int/lit8 v4, v4, 0x1

    iput v4, v0, Lcom/estrongs/fs/e;->e:I

    goto :goto_1

    .line 22
    :cond_1
    iget v4, v0, Lcom/estrongs/fs/e;->f:I

    add-int/lit8 v4, v4, 0x1

    iput v4, v0, Lcom/estrongs/fs/e;->f:I

    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_2
    const-string p0, "File"

    .line 23
    iput-object p0, v0, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 24
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->length()J

    move-result-wide v2

    iput-wide v2, v0, Lcom/estrongs/fs/e;->d:J

    .line 25
    :cond_3
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->lastModified()J

    move-result-wide v2

    iput-wide v2, v0, Lcom/estrongs/fs/e;->i:J

    .line 26
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->createTime()J

    move-result-wide v2

    iput-wide v2, v0, Lcom/estrongs/fs/e;->g:J

    .line 27
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->canRead()Z

    move-result p0

    iput-boolean p0, v0, Lcom/estrongs/fs/e;->j:Z

    .line 28
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->canWrite()Z

    move-result p0

    iput-boolean p0, v0, Lcom/estrongs/fs/e;->k:Z

    .line 29
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->isHidden()Z

    move-result p0

    iput-boolean p0, v0, Lcom/estrongs/fs/e;->l:Z
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception p0

    .line 30
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_1
    move-exception p0

    .line 31
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_2
    move-exception p0

    .line 32
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_3

    :goto_2
    throw v0

    :goto_3
    goto :goto_2
.end method

.method public static b(Ljava/lang/String;J)Ljava/io/OutputStream;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-nez v2, :cond_0

    .line 33
    invoke-static {p0}, Les/q40;->f(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p0

    return-object p0

    .line 34
    :cond_0
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 35
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 36
    new-instance p0, Les/t40;

    invoke-direct {p0, v0, p1, p2}, Les/t40;-><init>(Ljcifs/smb/SmbFile;J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    .line 37
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static b(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    new-instance v1, Ljcifs/smb/SmbFile;

    invoke-direct {v1, v0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->exists()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    invoke-static {p1}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p1}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 6
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p1

    if-nez p1, :cond_0

    .line 7
    invoke-virtual {v1, v0}, Ljcifs/smb/SmbFile;->renameTo(Ljcifs/smb/SmbFile;)V

    const/4 p0, 0x1

    return p0

    .line 8
    :cond_0
    new-instance p1, Lcom/estrongs/fs/FileExistException;

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileExistException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 9
    :cond_1
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    new-instance v0, Ljava/io/FileNotFoundException;

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-direct {v0, p0}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    invoke-direct {p1, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p0

    .line 10
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    :catch_1
    move-exception p0

    .line 11
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static c(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 2
    new-instance v0, Ljcifs/smb/SmbFileInputStream;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFileInputStream;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception p0

    .line 3
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p0

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public static d(Ljava/lang/String;)J
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    new-instance v1, Ljcifs/smb/SmbFile;

    invoke-direct {v1, v0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->exists()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->isFile()Z

    move-result p0

    if-eqz p0, :cond_0

    .line 5
    invoke-virtual {v1}, Ljcifs/smb/SmbFile;->length()J

    move-result-wide v0

    return-wide v0

    :cond_0
    const-wide/16 v0, 0x0

    return-wide v0

    .line 6
    :cond_1
    new-instance v0, Ljava/io/FileNotFoundException;

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-direct {v0, p0}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p0

    .line 7
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_1
    move-exception p0

    .line 8
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_2
    move-exception p0

    .line 9
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static e(Ljava/lang/String;)Lcom/estrongs/fs/g;
    .locals 3

    .line 1
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    new-instance v1, Les/p40;

    new-instance v2, Ljcifs/smb/SmbFile;

    invoke-direct {v2, v0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    invoke-direct {v1, v2, p0}, Les/p40;-><init>(Ljcifs/smb/SmbFile;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v1

    :catch_0
    move-exception p0

    .line 3
    invoke-virtual {p0}, Ljava/net/MalformedURLException;->printStackTrace()V

    const/4 p0, 0x0

    return-object p0
.end method

.method public static f(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 2
    new-instance v0, Ljcifs/smb/SmbFileOutputStream;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFileOutputStream;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception p0

    .line 3
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p0

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public static g(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 2
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p0

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return p0

    .line 4
    :cond_0
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->isDirectory()Z

    move-result p0
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :catch_0
    move-exception p0

    .line 5
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_1
    move-exception p0

    .line 6
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static h(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Les/q40;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 2
    new-instance v0, Ljcifs/smb/SmbFile;

    invoke-direct {v0, p0}, Ljcifs/smb/SmbFile;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->exists()Z

    move-result p0

    if-nez p0, :cond_0

    .line 4
    invoke-virtual {v0}, Ljcifs/smb/SmbFile;->mkdirs()V
    :try_end_0
    .catch Ljcifs/smb/SmbException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    const/4 p0, 0x1

    return p0

    :catch_0
    move-exception p0

    .line 5
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_1
    move-exception p0

    .line 6
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static i(Ljava/lang/String;)Ljava/lang/String;
    .locals 8

    const-string v0, "@"

    .line 1
    invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    const/4 v2, -0x1

    if-ne v1, v2, :cond_0

    return-object p0

    .line 2
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 3
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 4
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->i0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 5
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 6
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4, p0}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    .line 7
    invoke-static {v1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_4

    const-string v5, ""

    const-string v6, ":"

    if-nez v3, :cond_2

    .line 8
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c0(Ljava/lang/String;)I

    move-result p0

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v1}, Les/u40;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-nez v2, :cond_1

    goto :goto_0

    :cond_1
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 9
    invoke-static {v2}, Les/u40;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    :goto_0
    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 10
    invoke-virtual {v4, p0, v0}, Ljava/lang/StringBuffer;->insert(ILjava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_2

    .line 11
    :cond_2
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c0(Ljava/lang/String;)I

    move-result p0

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v3}, Les/u40;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, ";"

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 12
    invoke-static {v1}, Les/u40;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-nez v2, :cond_3

    goto :goto_1

    :cond_3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 13
    invoke-static {v2}, Les/u40;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    :goto_1
    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 14
    invoke-virtual {v4, p0, v0}, Ljava/lang/StringBuffer;->insert(ILjava/lang/String;)Ljava/lang/StringBuffer;

    .line 15
    :cond_4
    :goto_2
    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method
